REM 
REM Usage: call "$(SolutionDir)Solution Items\FishServe.Build.Solution.bat" "$(ConfigurationName)" "$(SolutionName)" "$(SolutionDir)." "ReleaseSetName"
REM

SET ConfigurationName=%1
SET SolutionName=%2
SET SolutionDir=%3
SET ReleaseSetName=%4

SET QuotelessSolutionDir=%SolutionDir:~1,-3%

ECHO FishServe.Build.Solution.bat: PostBuildAction

call "%QuotelessSolutionDir%\Solution Items\FishServe.Build.Solution.exe" %ConfigurationName% %SolutionName% %SolutionDir% %ReleaseSetName%
if errorlevel 1 goto BuildEventFailed
goto BuildEventOk

:BuildEventFailed
ECHO FishServe.Build.Solution.bat: PostBuildAction for release set %ReleaseSetName% Failed
exit 1

:BuildEventOk
ECHO FishServe.Build.Solution.bat: PostBuildAction for release set %ReleaseSetName% Completed Ok

